
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>员工名单</title>
    <%-- 静态包含 base标签、css样式、jQuery文件 --%>
    <%@ include file="/page/common/header.jsp"%>

</head>
<body>
<div id="container">

    <table class="right">
        <tr>
            <th>员工ID</th>
            <th>姓名</th>
            <th>性别</th>
            <th>电话</th>
            <th>电子邮箱</th>
            <th>家庭住址</th>
            <th>操作</th>
        </tr>
        <c:forEach items="${requestScope.staffs}" var="staffs">
            <tr>
                <td>${staffs.id}</td>
                <td>${staffs.name}</td>
                <td>${ empty staffs.sex ? "女" : "男" }</td>
                <td>${staffs.telephone}</td>
                <td>${staffs.email}</td>
                <td>${staffs.address}</td>
                <td><a href="client/staffServlet?action=getStaff&id=${staffs.id}">修改   </a>
                    <a class="deleteClass" href="client/staffServlet?action=delete&id=${staffs.id}">   删除</a></td>
            </tr>
        </c:forEach>

        <tr>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td></td>
            <td><a href="page/edit/staff_edit.jsp">添加员工</a></td>
        </tr>

    </table>
</div>

</div>
<%--静态包含页脚内容--%>
<%@include file="/page/common/footer.jsp"%>
</body>
</html>
